﻿namespace ApiTemplate.Entity.Input.SchedulerTask
{
    /// <summary>
    /// 添加调度任务的输入参数
    /// </summary>
    public class AddSchedulerTaskInput
    {
        /// <summary>
        /// 任务名称
        /// </summary>
        public string TaskName { get; set; }

        /// <summary>
        /// http请求类型：0：httpget ；1httpPost
        /// </summary>
        public int RequsetType { get; set; }

        /// <summary>
        /// 请求的url
        /// </summary>
        public string Url { get; set; }

        /// <summary>
        /// POST请求的参数，json字符串
        /// </summary>
        public string Parameter { get; set; }

        /// <summary>
        /// 定时执行表达式
        /// </summary>
        public string CronStr { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreatedTime { get; set; }

        /// <summary>
        /// 上次执行时间
        /// </summary>
        public DateTime LastExecTime { get; set; }
    }
}
